<?php

namespace Modules\Admin\Entities;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class ConfigGroup extends Model
{
    use HasFactory;


    protected $table = 'sys_config_group';

    protected $fillable = ['name','sort'];

    //配置项
    public function configurations()
    {
        return $this->hasMany(Configuration::class,'group_id','id');
    }
    
    protected static function newFactory()
    {
        return \Modules\Admin\Database\factories\ConfigGroupFactory::new();
    }
}
